import FileUtils from "../utils/FileUtils";

class GeneratorStore {
  private genFiles: string[] = [];

  pushFilePath(filePath: string) {
    if (FileUtils.exist(filePath)) {
      this.genFiles.push(filePath);
    }
  }

  deleteAll() {
    this.genFiles.forEach((item) => {
      FileUtils.deleteDir(item, false);
    });
  }
}

export default new GeneratorStore();
